package com.data.monitoring.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.data.monitoring.model.entity.FolderStatus;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * <p>
 * 文件夹状态记录 Mapper 接口
 * </p>
 *
 * @author HanYiMing
 * @since 2025-05-28
 */
public interface FolderStatusMapper extends BaseMapper<FolderStatus> {

    Page<FolderStatus> findByFolderId(@Param("folderId") Long folderId, Pageable pageable);

    List<FolderStatus> findLatestStatus();
}
